bitkeeper revision 1.1159.258.102 (42642814jW88x6oBUhJL6cOEJiTYjA)
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Mon, 18 Apr 2005 21:35:16 +0000 (21:35 +0000)
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Mon, 18 Apr 2005 21:35:16 +0000 (21:35 +0000)
Add a check for the 'ip' iproute tools in the install script.
Suggested by Sam Johnston [samjie@gmail.com]
Signed-off-by: ian@xensource.com
.rootkeys
tools/check/check_iproute [new file with mode: 0755]

index 6f778d6167a3b31dfce37291f0bffbf785df5e32..37c455d2bdcfa9d1e80035459f21993d2d4cff87 100644 (file)
--- a/.rootkeys
+++ b/.rootkeys
 4124b307jt7T3CHysgl9LijNHSe1tA tools/check/check_brctl
 4124b307HDX972-zihuZWXB7R8Vd0w tools/check/check_curl_devel
 4124b307P3bZBkTFm6r-3XTbf0phAA tools/check/check_curl_lib
+42642813SYRkwr07qVZ9eCI5QTZANg tools/check/check_iproute
 4124b307u-FeKvFP9kZnh0rLV0XjGg tools/check/check_logging
 4124b307tRTjLqzRy60QrUoqN2Fhuw tools/check/check_python
 4124b307XdznSNCv97lrT3RpOdMM1A tools/check/check_twisted
diff --git a/tools/check/check_iproute b/tools/check/check_iproute
new file mode 100755 (executable)
index 0000000..663e078
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+# CHECK-INSTALL
+
+function error {
+   echo 'Check for iproute (ip addr) failed.'
+   exit 1
+}
+
+ip addr list || error
+